package com.example.designModel.simpleFactory;

public class MainMethod {

    public static void main(String[] args) {



        Operation operation = OperationFactory.createOperation("-");
        operation.setNumberA(4);
        operation.setNumberB(2);
        try {
            double result = operation.getResult();
            System.out.println(result);
        }catch (Exception e) {
            System.out.println(e);
        }
    }
}
